package com.purchase.order.mapper;

import com.purchase.order.domain.OrderCompanyType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CompanyTypeMapper {

    //添加公司类别
    int insertTye(@Param("mid") Long materialId,@Param("tid") Long typeId,@Param("name") String name);

    //删除公司类别
    int deleteType(@Param("mid")Long materialId);

    //获取公司子类
    List<OrderCompanyType> typeList(@Param("tid")Long typeId);

    //重复校验类
    int checkName(@Param("name") String name);

    List<OrderCompanyType> getall();
}
